var loadSelect = (data, selector = '') => {
    var html = '';
    for(var i in data) {
        var v = data[i]
        // 将接口返回的数据 显示到下拉框内
        html += '<option value="'+ v.id +'">'+ v.id + ' ' + v.name +'</option>'
    }

    layui.$(selector).append(html)
}

export {loadSelect}